package cn.edu.sdjzu.xg.bysj.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ApplicationForSupervisorEntry implements Comparable<ApplicationForSupervisorEntry>, Serializable {
    //本类不需要 id
    //志愿顺序
    private int priority;
    // 目标导师
    private Teacher teacher;
    private ApplicationForSupervisor applicationForSupervisor;

    @Override
    public int compareTo(ApplicationForSupervisorEntry applicationForSupervisorEntry) {
        return this.priority - applicationForSupervisorEntry.priority;
    }
    @Override
    public String toString(){
        return "Student{" +
                "priority=" + priority + '\'' +
                ", teacher=" + teacher +'\''+
                ", applicationForSupervisor="+ applicationForSupervisor;
    }
}
